package request

// TransitionOrderStateRequest 状态转换请求
type TransitionOrderStateRequest struct {
	OrderID      uint64 `form:"order_id" json:"order_id" binding:"required" example:"1"`                  // 订单ID
	Event        string `form:"event" json:"event" binding:"required" example:"accept"`                     // 事件
	OperatorID   string `form:"operator_id" json:"operator_id" binding:"required" example:"operator_001"` // 操作员ID
	OperatorType string `form:"operator_type" json:"operator_type" example:"agent"`                       // 操作员类型
	Reason       string `form:"reason" json:"reason" example:"接单处理"`                                      // 原因
}

// GetOrderStateInfoRequest 获取订单状态信息请求
type GetOrderStateInfoRequest struct {
	OrderID uint64 `form:"order_id" json:"order_id" binding:"required" example:"1"` // 订单ID
}

// ValidateTransitionRequest 验证状态转换请求
type ValidateTransitionRequest struct {
	OrderID uint64 `form:"order_id" json:"order_id" binding:"required" example:"1"` // 订单ID
	Event   string `form:"event" json:"event" binding:"required" example:"accept"`   // 事件
}

// GetStateHistoryRequest 获取状态历史请求
type GetStateHistoryRequest struct {
	OrderID uint64 `form:"order_id" json:"order_id" binding:"required" example:"1"` // 订单ID
}

